package net.mfjassociates.tools;

import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JPanel;

public class TestDialog extends JPanel {

	JFrame jframe;
	public TestDialog(JFrame jframe) {
		this.jframe=jframe;
		JOptionPane.showInputDialog("bonjour");
	}
	public static void main(String[] args) {
		//System.out.println(JOptionPane.showInputDialog("bonjour"));
        javax.swing.SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                createAndShowGUI();
            }
        });
	}
	protected static void createAndShowGUI() {
        //Create and set up the window.
        JFrame frame = new JFrame("DialogDemo");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        //Create and set up the content pane.
        TestDialog newContentPane = new TestDialog(frame);
        newContentPane.setOpaque(true); //content panes must be opaque
        frame.setContentPane(newContentPane);

        //Display the window.
        frame.pack();
        frame.setVisible(true);
	}
}
